package com.szss.springbootfirst.controller;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author wcx
 * @date 2023/1/30 18:48
 */
@Controller
@ConfigurationProperties(prefix = "person")
public class HelloController {

    @RequestMapping("/hello")
    @ResponseBody
    public String hello(){
        return "this is first springbootFirst!";
    }


}
